<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>上传图片</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
<link rel="stylesheet" type="text/css" href="/style/assets/plugins/bootstrap-datetimepicker/css/datetimepicker.css" />
</head>
<!-- BEGIN BODY -->
<body>
<div id="_form" style="float:left;width:100%; height:auto; background:#fff;">  
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15%" height="40">图片一</td>
        <td><?php
        if($this->data['data'][0]!="") echo '<div class="alert alert-success"><strong>上传成功!</strong></div>';
		else echo '<div class="alert alert-danger"><strong>上传失败，原因：'.$this->c['error'][$this->data['error'][0]].'</strong></div>';
		?></td>
      </tr>
      <tr>
        <td height="40">图片二</td>
        <td><?php
        if($this->data['data'][1]!="") echo '<div class="alert alert-success"><strong>上传成功!</strong></div>';
		else echo '<div class="alert alert-danger"><strong>上传失败，原因：'.$this->c['error'][$this->data['error'][1]].'</strong></div>';
		?></td>
      </tr>
      <tr>
        <td height="40">图片三</td>
        <td><?php
        if($this->data['data'][2]!="") echo '<div class="alert alert-success"><strong>上传成功!</strong></div>';
		else echo '<div class="alert alert-danger"><strong>上传失败，原因：'.$this->c['error'][$this->data['error'][2]].'</strong></div>';
		?></td>
      </tr>
      <tr>
        <td height="40">图片四</td>
        <td><?php
        if($this->data['data'][3]!="") echo '<div class="alert alert-success"><strong>上传成功!</strong></div>';
		else echo '<div class="alert alert-danger"><strong>上传失败，原因：'.$this->c['error'][$this->data['error'][3]].'</strong></div>';
		?></td>
      </tr>
      <tr>
        <td height="40">图片五</td>
        <td><?php
        if($this->data['data'][4]!="") echo '<div class="alert alert-success"><strong>上传成功!</strong></div>';
		else echo '<div class="alert alert-danger"><strong>上传失败，原因：'.$this->c['error'][$this->data['error'][4]].'</strong></div>';
		?></td>
      </tr>
      <tr>
        <td height="40">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="40">&nbsp;</td>
        <td>
        <input type="button" value="继续上传" onClick="location.href='/channel/upload';" class="btn green">
        <input type="button" value="再次插入图片" onClick="_import();" class="btn green">
        </td>
      </tr>
    </table>
</div>
<script type="text/javascript" src="/style/assets/plugins/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var _pics = Array(<?php
echo implode(",",$this->data['data']);
?>);
function _import(){
	$.each(_pics,function(i,v){
		window.parent._insert_pic(v);
	});
}

_import();
</script>
</body>
</html>